package com.sharing.mapper;

import com.sharing.domain.BrowseRecord;
import com.sharing.domain.Hobby;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/4/14 13:02
 */
@Mapper
public interface HobbyMapper {

    Integer selectFirstLevelHobbyNum();

    List<Hobby> selectFirstLevelHobby(Integer page, Integer size);

    List<Hobby> selectHobbyByIds(List<Integer> hobbyIds);

    Integer selectSecondLevelHobbyNumByParentId(Integer parentId);

    List<Hobby> selectSecondLevelHobbyByParentId(Integer parentId, Integer page, Integer size);

    Hobby selectLevelHobbyByHobby(String hobby);

    Integer insertHobby(Hobby hobby);

    Integer deleteHobby(List<Integer> ids);

    List<Integer> selectHobbyIdsByHobby(List<String> hobbies);

    String selectHobbyByHobbyId(Integer id);
}